home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1294_niload_deleting_hosts_problems.rtf < prev    next >
Text File  |  1995-06-12  |  5KB  |  258 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
  2. \paperw11160
  3. \paperh8400
  4. \margl120
  5. \margr120
  6. {\colortbl;\red0\green0\blue0;\red84\green84\blue84;\red83\green83\blue83;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q.  When I reboot after performing:\
  8. \
  9.  
  10. \b      
  11. \f1\b0\fs24 niload -d hosts / < /etc/hosts
  12. \f0\fs28 \
  13.              \
  14. why does the NetInfo server display the following message? \
  15. \
  16.     
  17. \f1\fs24 cannot find parent NetInfo server, still looking...\
  18.     Press 'c' to continue boot without parent server.\
  19.     See your system administrator if you need help.\
  20.  
  21. \f0\fs28 \
  22. A.  During the 
  23. \b niload -d
  24. \b0  command the entry for the local host in the NetInfo root domain got deleted, or perhaps a new entry was created without the 
  25. \b serves
  26. \b0  property.  In either case, without the 
  27. \b serves
  28. \b0  property, a machine can't find its parent server.\
  29. \
  30.  
  31. \b niload  -d
  32. \b0  deletes entries that are in the directory but not in the input (which in this case is \
  33. /etc/hosts).  Thus either the machine's entry is completely lost (if the corresponding entry is not in /etc/hosts), or else the machine's entry is overwritten by the new entry, deleting the 
  34. \b serves
  35. \b0  property in the process.  (
  36. \b niload
  37. \b0  is not capable of adding properties other than the standard Unix ones, which are 
  38. \b  ip_address
  39. \b0  and 
  40. \b name
  41. \b0  in this case.)\
  42. \
  43. There are two different procedures for fixing the problem, depending on whether the 
  44. \b serves
  45. \b0  property got corrupted on a NetInfo 
  46. \b client
  47. \b0  or on a 
  48. \b server.\
  49. \
  50. 1. If the Machine is a Client:\
  51.  
  52. \b0 \
  53. The procedure to fix the problem is easier in this case, since the root domain can be accessed through NetInfoManager.  Run NetInfoManager on the NetInfo server and add the missing 
  54. \b machines
  55. \b0  subdirectory or the missing 
  56. \b serves
  57. \b0  property (of the form 
  58. \b\i hostname
  59. \i0 /local
  60. \b0 ) to the root domain:\
  61. \
  62.  
  63. \fi-980\li980  •    Launch NetInfoManager.\
  64.  •    Open the / (root) domain.\
  65.  •    Edit Properties for 
  66. \i hostname
  67. \i0 , where 
  68. \i hostname
  69. \i0  is the name of your client (see following section if there is no entry for 
  70. \i hostname)
  71. \i0 .\
  72.  •    Make a 
  73. \b serves
  74. \b0  property.\
  75.  •    Change newValue of the 
  76. \b serves
  77. \b0  property to 
  78. \i hostname
  79. \i0 /local.\
  80.  •    Reboot 
  81. \i hostname
  82. \i0 .\
  83.  
  84. \fi0\li0  \
  85.  If there is no 
  86. \b machines
  87. \b0  entry for 
  88. \i hostname
  89. \i0 , create one:\
  90.  \
  91.  
  92. \fi-980\li980  •    Create a new 
  93. \b machines
  94. \b0  subdirectory for 
  95. \i hostname
  96. \i0 .\
  97.  •    Change the 
  98. \b machines
  99. \b0  subdirectory from  newValue to 
  100. \i hostname
  101. \i0 .\
  102.  •    Edit Properties for 
  103. \i hostname
  104. \i0 .\
  105.  •      an 
  106. \b ip_address
  107. \b0  property with a value of the form 
  108. \i xxx.yy.zzz.aaa
  109. \i0 , replacing 
  110. \i xxx.yy.zzz.aaa 
  111. \i0 with the correct ip-address.\
  112.  •      a 
  113. \b serves
  114. \b0  property with the value 
  115. \i hostname
  116. \i0 /local\
  117.  •    Reboot 
  118. \i hostname
  119. \i0 .\
  120.  
  121. \fi0\li0 \
  122. \
  123.  
  124. \b 2. If the Machine is a Server:\
  125.  
  126. \b0 \
  127. If the machine is the server, the procedure is a little more involved:\
  128. \
  129.  
  130. \fi-980\li980 •    Boot the machine, and when you get the error message, type "c" to continue.  Once the machine is up, log in.  Open a Shell or Terminal and 
  131. \b su
  132. \b0  to root if you are not already logged in as root. \
  133.  \
  134. •    Run 
  135. \b niutil
  136. \b0  to see what has happened to the machine 
  137. \i hostname
  138. \i0 .  Replace 
  139. \i hostname
  140. \i0  with the name of your machine:\
  141.  
  142. \fi0\li0  \
  143.  
  144. \f1\fs24     #niutil -read -t localhost/network /machines/
  145. \i hostname
  146. \i0 \
  147.  
  148. \f0\fs28  \
  149.  You might get an output that looks like this: \
  150.  \
  151.  
  152. \f1\fs24     name: 
  153. \i hostname 
  154. \i0 \
  155.     ip_address: 192.72.11.1 \
  156.     en_address: 00:00:0f:00:3:3 \
  157.     bootfile: mach \
  158.     bootparams: private=
  159. \i server
  160. \i0 :/clients/
  161. \i hostname
  162. \i0  root=
  163. \i server
  164. \i0 :/ \
  165. \
  166.  
  167. \f0\fs28 Note the missing 
  168. \b serves
  169. \b0  property!  If your output looks like the above, add the missing 
  170. \b serves
  171. \b0  property by entering the following command:\
  172. \
  173.  
  174. \f1\fs24     #niutil -createprop -t localhost/network /machines/
  175. \i hostname 
  176. \i0 serves\\\
  177.     
  178. \i hostname
  179. \i0 /local ./network\
  180.  
  181. \f0\fs28 \
  182. and then reboot the machine.\
  183. \
  184. If instead of the above output, you got the following output:\
  185. \
  186.  
  187. \f1\fs24     niutil: can't open localhost/network:/machines/
  188. \i hostname
  189. \i0 \
  190. \
  191.  
  192. \f0\fs28 then the 
  193. \b machines
  194. \b0  subdirectory for your machine 
  195. \i hostname 
  196. \i0 was blown away.  To recreate this directory do the following:\
  197. \
  198.  
  199. \fi-980\li980 •    Create a host directory for
  200. \i  hostname
  201. \i0 :\
  202.  
  203. \fi0\li0 \
  204.  
  205. \f1\fs24     #niutil -create -t localhost/network /machines/
  206. \i hostname
  207. \i0 \
  208.  \
  209.  
  210. \f0\fs28 •    Add the correct 
  211. \b serves
  212. \b0  property for 
  213. \i hostname
  214. \i0 :\
  215. \
  216.  
  217. \f1\fs24     #niutil -createprop -t localhost/network /machines/
  218. \i hostname 
  219. \i0 serves\\\
  220.     
  221. \i hostname
  222. \i0 /local ./network\
  223.  
  224. \f0\fs28 \
  225.  
  226. \fi-980\li980 •    Add the 
  227. \b ip_address
  228. \b0  property for 
  229. \i hostname
  230. \i0 , replacing 
  231. \i xxx.yy.zzz.aaa 
  232. \i0 with the correct IP address:\
  233.  
  234. \fi0\li0 \
  235.  
  236. \f1\fs24     #niutil -createprop -t localhost/network /machines/
  237. \i hostname\\\
  238.     
  239. \i0 ip_address 
  240. \i xxx.yy.zzz.aaa
  241. \i0 \
  242. \
  243.  
  244. \f0\fs28 • After these changes, reboot the machine:\
  245. \
  246.  
  247. \f1\fs24     #reboot\
  248. \
  249.  
  250. \f0\fs28 QA515\
  251. \
  252.  
  253. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0\cf0 Valid for 1.0, 2.0, 3.0, 3.1\
  254.  
  255. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0\cf0 \
  256.  
  257.  
  258.